﻿<%@ Page Title="地标" Language="C#" MasterPageFile="~/search/SearchMastePage.master" AutoEventWireup="true" CodeBehind="areaitems.aspx.cs" Inherits="map.search.areaitems" %>
                                                                    
<%@ Register Assembly="RuleCode.Common" Namespace="RuleCode.Controls" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head2" runat="server">

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>

    <script type="text/javascript" src="../js/jquery.magnifier.js"></script>

    <link href="../css/CustomStyleSheet.css" rel="stylesheet" type="text/css" />

    <script src="../js/dropdowncontent.js" type="text/javascript"></script>

    <script src="../js/JScript1.js" type="text/javascript"></script>

    <script src="../js/dom-drag.js" type="text/javascript"></script>

    <script type="text/javascript">
        function btnclick() {
            var keyvalue = document.getElementById("ctl00_ctl00_ContentPlaceHolder1_TextBox1").value;
            keyvalue = encodeURI(keyvalue);

            var link = "areaitems.aspx?keyvalue=" + keyvalue + "&id=" + currecid;
            window.location.href = link;

        }
        function subInit() {


        }
        jQuery(function($) {
            // 你可以在这里继续使用$作为别名...
            $("#netshoping").removeClass("actived");
            $("#bizarealist").addClass("actived");
            $("#submitbutton").text("搜索商品");
        });
       
    
    </script>

    <style type="text/css">
        .style6
        {
            width: 201px;
        }
        .dataListItem
        {
            text-align: center;
        }
          
        #DetailImgsTd1_div td
        {
            vertical-align:top;
        }  
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyContent" runat="server">
    <div class="community1">
        <span id="BizAreaNameSpan" runat="server" style=" font-size:large; font-weight:bold;"></span><br />
        <table class="style1">
            <tr>
                <td rowspan="2" style="width: 160px; border-right: solid 1px green;" valign="top">
                    <div id="photoesView1">
                        <span id="phototitle1" style="-moz-background-clip: border; -moz-background-inline-policy: continuous;
                            -moz-background-origin: padding; background: transparent url(../img/point03_10x9.gif) no-repeat scroll 0 2px;
                            color: #065100; font-size: 14px; font-weight: bold; line-height: 14px; padding-left: 15px;">
                            图片</span>
                        <div id="photoTable">
                            <img alt="小区图片" style =" width:150px; max-width :150px;" src='<%= ((biz.BizAreaImagePath.ToString()!="")?biz.BizAreaImagePath.ToString():"../img/userdefaultimg.gif")  %>'/>   <br/>
                            <a href ="#"><%=biz.Description.ToString()%></a>

                        </div>
                    </div>
                </td>
                <td>
                    <asp:Label ID="communityTitle" Style="color: #892F03; font-size: 18px; font-weight: bold;
                        margin: 10px 5px;" runat="server"></asp:Label><hr />
                        <table class="style1">
                        <tr>
                            <td colspan="2" style="text-align: left">
                                <asp:DataList ID="DataList_all" runat="server" Width="100%"  
                                    OnItemDataBound="DataList_all_ItemDataBound" >
                                    <ItemTemplate>
                                    <div class="Section"  >
                                        <div class="title">
                                                <%# GetAreaTitle(Eval("p1").ToString(), Eval("p2").ToString())%>
                                            </div> 
                                            <div class="context">
                                             <asp:DataList ID="DataList_in" runat="server" Width="100%" DataKeyField="recid" RepeatColumns="4"  
                                                ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left"
                                                RepeatDirection="Horizontal">
                                                <ItemTemplate>
                                                    <div class="imageBlock">
                                                        <a href="../member/default.aspx?cbshoppageid=3&id=<%# Eval("userRECID").ToString()%>&itemid=<%# Eval("RECID").ToString() %>"
                                                            target="_blank">
                                                            <asp:Image ID="Image2" runat="server" Height="150px"  ImageUrl='<%#(Eval("taobaopic_path").ToString().Trim()!="")?Eval("taobaopic_path"):"../img/userdefaultimg.gif" %>'
                                                                 Width="175px"  />
                                                        </a>
                                                    </div>
                                                    地址：<%# Eval("area_p3").ToString() + p3%>&nbsp;<br />
                                                    价格：<span style="color:Red;"><%#Eval("taobaoprice").ToString()%>元</span> <br />
                                                    <a href="/member/default.aspx?cbshoppageid=3&id=<%# Eval("userRECID").ToString()%>&itemid=<%# Eval("RECID").ToString() %>"
                                                        target="_blank">
                                                        <%# RuleCode.Table.cbuser.CutString(Eval("taobaotitle").ToString(), 20, "..")%>
                                                    </a>
                                                    <%# RuleCode.Table.cbuser.getChatStrfromuserid(Eval("taobaoUserId").ToString())%>
                                                </ItemTemplate>
                                            </asp:DataList>
                                            <%--<cc1:WebPager ID="WebPager_in" PageSize ="12" OnPageIndexChanged="WebPager_in_PageIndexChanged"    runat="server" /> --%> 
                                           </div>
                                        </div>
                                    </ItemTemplate>
                                </asp:DataList>
                                <%--<cc1:WebPager ID="WebPager_all" OnPageIndexChanged ="WebPager_all_PageIndexChanged" PageSize="10" ControlToPaginate ="DataList_all" runat="server" />--%>
                            </td>
                        </tr>
                    </table>
                    <div class="Section">
                        <div class="title">
                            商圈详细图片：
                        </div>
                        <div class="context" style=" text-align:left ;">
                            <div id="DetailImgsDiv" style =" overflow :hidden ;  " >
                                <table id="DetailImgsTable"  style="width:100%; border:0px;"  cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td id="DetailImgsTd1" valign="top">
                                            <div id="DetailImgsTd1_div" style="margin-left:1pt; vertical-align:bottom; margin-right:1px; color:#800000;">
                                               <asp:DataList ID="DetailImgsDataList" runat="server" Width="100%"  RepeatColumns="4"
                                                     RepeatDirection="Horizontal" >
                                                    <ItemTemplate>                             
                                                            <div class="imageBlock">
                                                                <asp:Image ID="Image2" runat="server"  ToolTip ='<%# (System.IO.File.Exists(Server.MapPath (Eval("BizAreaImagePath").ToString()))==true)?"点击查看放大图片":"原图片不存在，这是一张替换图片"%>' 
                                                                Height="150px" ImageUrl='<%# (System.IO.File.Exists(Server.MapPath ( Eval("BizAreaImagePath").ToString()))==true)?Eval("BizAreaImagePath").ToString():"/img/userdefaultimg.gif"%>' 
                                                                Width="175px" />                                                             
                                                            </div>     
                                                            <%#  Eval("BizAreaImageDescription").ToString()%>      
                                                    </ItemTemplate>
                                                </asp:DataList>
                                            </div> 
                                        </td>                                           
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="Section">
                        <div class="title">
                            商圈介绍
                        </div>
                        <div class="context">
                            <%= biz.BizAreaDescription.Value%>
                        </div>
                    </div>
                    <div class="Section">
                        <div class="title">
                            商圈配套
                        </div>
                        <div class="context">
                            <%= biz.BizAreaDescription.Value%>
                        </div>
                    </div>
                    
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    <script type="text/javascript">
        document.getElementById("submitbutton").title = "搜索商品";
    </script>
</asp:Content>
